package com.zbs.framework.swagger.entity.doc;

import com.zbs.framework.swagger.utils.ApiTypeUtil;
import com.zbs.framework.swagger.view.ApiView;
import lombok.Data;

import java.util.List;

@Data
public class GroupApi {
    private String apiName;
    private String apiPath;
    private String method;
    private String requestType;
    private List<GroupApiParam> reqParams;
    private List<GroupApiParam> respParams;

    public GroupApi(ApiView apiView,List<GroupApiParam> reqParams,List<GroupApiParam> respParams) {
        this.apiName = apiView.getApiName();
        this.apiPath = apiView.getPath();
        this.method = apiView.getMethod();
        this.requestType = ApiTypeUtil.getRequestType(apiView.getRequestType());
        this.reqParams = reqParams;
        this.respParams = respParams;
    }


}
